package com.maimao.model.kill;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * 申请秒杀的SKU信息
 *
 * @author MaoLin Wang
 * @date 2021/4/8 4:09 下午
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class ApplySku {

    /**
     * skuId
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /**
     * sku名称
     */
    private String name;

    /**
     * 图片
     */
    private String pic;

    /**
     * 原价
     */
    private BigDecimal price;

    /**
     * 库存
     */
    private Integer stock;


    @Override
    public String toString() {
        return "ApplySku{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pic='" + pic + '\'' +
                ", price=" + price +
                ", stock=" + stock +
                '}';
    }
}
